<template>
  <div>
    <el-card>
      <img style="width: 60px; height: 60px" :src="useStore.avatar" alt="" />
      <h1>{{ useStore.username }}</h1>
    </el-card>
  </div>
</template>
<script setup lang="ts">
import { onMounted } from 'vue'
import useUserStore from '@/store/modules/user'
let useStore = useUserStore()
onMounted(() => {
  useStore.userInfo()
})
</script>
